package com.bank.basic.controller;

import com.bank.basic.service.NoticeService;
import com.bank.common.commonUtil.AuthContextHolderUtil;
import com.bank.model.entity.Notice;
import com.bank.model.vo.notice.NoticeAddVo;
import com.bank.model.vo.transfer.TransferVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * @author Cejay1314
 * @version 1.0
 * @create 2023/4/13 14:47
 */
@RestController
@RequestMapping(value = "/basic/notice")
public class NoticeController {
    @Autowired
    NoticeService noticeService;

    @GetMapping("/query")
    public List<Notice> query(){
        return noticeService.query();
    }
    @PostMapping("/add")
    public void add(@RequestBody NoticeAddVo noticeAddVo){
        noticeService.add(noticeAddVo);
    }
}
